<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<!--  <el-popover ref="popovericon" placement="top" width="400"> -->
<!--   <template v-for="icon in icons"> -->
<!--      <i class="fa " :class="icon"></i> -->
<!--   </template> -->
<!-- </el-popover> -->
<!-- <el-button v-popover:popovericon >click</el-button> -->
<!-- 资源-->
<el-dialog :title="editDiag.title"  :visible.sync="editDiag.show" @close="onCloseEditDialog" top="5%" :close-on-click-modal="false">
  <el-form :model="editDiag.form" :rules="editDiag.rules" ref="resourceDialogForm" onsubmit="return false;">
    <el-form-item label="资源名称：" :label-width="editDiag.formLabelWidth" prop="name">
      <el-input v-model="editDiag.form.name" auto-complete="off" ></el-input>
    </el-form-item>
    <el-form-item label="资源类型：" :label-width="editDiag.formLabelWidth" prop="type">
      <el-radio class="radio" v-model="editDiag.form.type" label="1">目录</el-radio>
      <el-radio class="radio" v-model="editDiag.form.type" label="2">菜单</el-radio>
      <el-radio class="radio" v-model="editDiag.form.type" label="3">功能</el-radio>
    </el-form-item>
    <el-form-item label="资源标示：" :label-width="editDiag.formLabelWidth" prop="identify">
      <el-input v-model="editDiag.form.identify" auto-complete="off" ></el-input>
    </el-form-item>
    <el-form-item label="地址：" :label-width="editDiag.formLabelWidth" prop="url">
      <el-input v-model="editDiag.form.url" auto-complete="off" ></el-input>
    </el-form-item>
    <el-form-item label="图标："  :label-width="editDiag.formLabelWidth" prop="icon">
      <el-input v-model="editDiag.form.icon"  auto-complete="off" @blur="onIconInputBlur" placeholder="fa fa-leaf">
         <template slot="append"><i class="fa-2x" :class="editDiag.icon"></i></template>
      </el-input>
    </el-form-item>
    <el-form-item label="序号："  :label-width="editDiag.formLabelWidth" prop="snum">
      <el-input-number v-model="editDiag.form.snum" :min="1" ></el-input-number>
    </el-form-item>
    <el-form-item label="备注：" :label-width="editDiag.formLabelWidth" prop="remark">
      <el-input type="textarea" v-model="editDiag.form.remark" auto-complete="off" ></el-input>
    </el-form-item>
  </el-form>
  <div slot="footer" class="dialog-footer">
    <el-button @click="editDiag.show= false">取 消</el-button>
    <el-button type="primary" @click="save">确 定</el-button>
  </div>
</el-dialog>